package org.tongdao.yulong.annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.tongdao.yulong.annotation.bean.Person;


/**
 * @Description: TODO
 * @author: 殷玉龙
 * @date: 2020年09月28日 9:57 上午
 */
public class AnnotationConfigApplication {
  public static void main(String[] args) {
    ApplicationContext ctx = new AnnotationConfigApplicationContext(QuicksStartConfiguration.class);
//    Person bean = ctx.getBean(Person.class);
    Person bean = (Person) ctx.getBean("aaa");
    System.out.println(bean);
  }
}
